package team.seekers.catering.food.entity.dto.update;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import team.seekers.catering.food.entity.pojo.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class ComboUpdateDTO extends IngredientAnalyzeDTO {

    /**
     * 基本信息
     */
    @NotBlank(message = "食谱id不能为空")
    @Size(max = 20, message = "食谱id长度不能超过19")
    private String id;

    @NotBlank(message = "食谱名称不能为空")
    @Size(max = 20, message = "食谱名称长度不能超过20")
    private String name;

    @NotBlank(message = "食谱描述不能为空")
    @Size(max = 255, message = "食谱名称长度不能超过20")
    private String description;

    @NotBlank(message = "请上传食谱图片")
    @Size(max = 255, message = "食谱名称长度不能超过20")
    private String picture;

    @NotNull(message = "套餐的单品组成不能为空")
    @ApiModelProperty(value = "套餐单品组成")
    private List<ContainFoodListDTO> foodContent;

    @ApiModelProperty(value = "套餐的口味标签")
    private List<ContainLabelListDTO> label;


}
